//
//  SAFRequestApi.h
//  TSBanPai
//
//  Created by wandong on 2017/10/17.
//  Copyright © 2017年 tingshan. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^SActionBlock)(void);
typedef void (^SActionBlock1)(id res);
@protocol SActionDelegate<NSObject>
@optional
-(void)sactionDelegate:(id)res;
-(void)sactionDelegate:(id)res tag:(NSInteger)tag;
@end
//failureBlock带参数
#define API_FUNC_NAME1(name) + (void)name:(NSDictionary*)submitData successBlock:(SActionBlock1)successBlock failureBlock:(SActionBlock1)failureBlock
#define API_FUNC_NAME_UPLOADFILE(name) + (void)name:(NSDictionary*)submitData file:(id)data successBlock:(SActionBlock1)successBlock failureBlock:(SActionBlock1)failureBlock progressBlock:(SActionBlock1)progressBlock
//上传文件+filename
#define API_FUNC_NAME_UPLOADFILE_FN(name) + (void)name:(NSDictionary*)submitData filename:(NSString*)filename file:(id)data successBlock:(SActionBlock1)successBlock failureBlock:(SActionBlock1)failureBlock progressBlock:(SActionBlock1)progressBlock
@interface SAFRequestApi : NSObject

//#pragma mark 首页接口
//API_FUNC_NAME1(api_bannerinfo_homePage);
//#pragma mark 登录
//API_FUNC_NAME1(api_login);
//#pragma mark 注册
//API_FUNC_NAME1(api_register);
//#pragma mark 注册验证码
//API_FUNC_NAME1(api_getRegMsgCode);
//#pragma mark 忘记密码验证码
//API_FUNC_NAME1(api_getForgetPasswordMsgCode);
//#pragma mark 忘记密码时修改密码
//API_FUNC_NAME1(api_forgetPassdUpdatePassword);
//#pragma mark 认证时验证码
//API_FUNC_NAME1(api_getAuthentication);
//#pragma mark 上传友盟token
//API_FUNC_NAME1(api_push_token);

//#pragma mark 添加订单
//API_FUNC_NAME1(api_order_addOrder);

//#pragma mark 根据用户ID获取地址列表
//API_FUNC_NAME1(api_address_findAddressBuCustomId);

//#pragma mark 获取用户分润等级
//API_FUNC_NAME1(api_trans_level);

//#pragma mark 获取划拨规则URL
//API_FUNC_NAME1(api_merchant_getRuleURL);

//#pragma mark 获取终端列表数量
//API_FUNC_NAME1(api_instance_count);

//#pragma mark 我的终端未激活
//API_FUNC_NAME1(api_instance_list_unActive);

//#pragma mark 我的终端审核中
//API_FUNC_NAME1(api_instance_list);

//#pragma mark 我的终端已划拨
//API_FUNC_NAME1(api_instance_flow);

//#pragma mark 我的终端可回拨
//API_FUNC_NAME1(api_instance_backFlow);

//#pragma mark 我的终端去回拨
//API_FUNC_NAME1(api_backFlow_flow);

//#pragma mark 回拨记录
//API_FUNC_NAME1(api_backFlow_records);

//#pragma mark 回拨历史记录
//API_FUNC_NAME1(api_backFlow_his);

//#pragma mark 设置返现金额
//API_FUNC_NAME1(api_merchant_backAmount);

//#pragma mark 划拨POS
//API_FUNC_NAME1(api_pos_flow);

//#pragma mark 激活MPOS
//API_FUNC_NAME1(api_merchant_addMPOS);

//#pragma mark 激活POS
//API_FUNC_NAME1(api_merchant_addPOS1);

//#pragma mark 自助开通商户
//API_FUNC_NAME1(api_merchant_addSimplePOS);

//#pragma mark 我要分享
//API_FUNC_NAME1(api_custom_qrCode);

//#pragma mark 获取课程列表
//API_FUNC_NAME1(api_course_courseList);

//#pragma mark 活动列表
//API_FUNC_NAME1(api_activity_activityList);

//#pragma mark 获取业绩首页
//API_FUNC_NAME1(api_custom_v1_performance);

//#pragma mark 获取业绩数量
//API_FUNC_NAME1(api_custom_v1_performance_agg);

//#pragma mark 获取业绩详情
//API_FUNC_NAME1(api_v1_perform_detail);

//#pragma mark 我的收益
//API_FUNC_NAME1(api_myEarnings_earnings);

//#pragma mark 历史收益
//API_FUNC_NAME1(api_myEarnings_history);

//#pragma mark 推广分润
//API_FUNC_NAME1(api_tradeDetail_dividedDetailList);

//#pragma mark 了解更多
//API_FUNC_NAME1(api_problems);

//#pragma mark 获取自助报单二维码
//API_FUNC_NAME1(api_merchant_getOrganizationQrCode);


//#pragma mark 获取余额
//API_FUNC_NAME1(api_custom_account);

//#pragma mark 确认验证码
//API_FUNC_NAME1(api_validate_mobile_confirm);
//#pragma mark 余额支付接口
//API_FUNC_NAME1(api_balance_pay);



@end

